Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/ottl] added flag path #34736

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

niko-renko
Copy link

@niko-renko niko-renko commented Aug 19, 2024

Description:
Cannot access flags from span context. Making a statement that uses flags will fail.
Fixes the bug by adding the flags path.

Link to tracking Issue:
Closes #34739

Testing:
None

Documentation:
N/A

Copy link

linux-foundation-easycla bot commented Aug 19, 2024

CLA Missing ID CLA Not Signed

@niko-renko niko-renko changed the title outadded flag path [pkg/ottl] added flag path Aug 19, 2024
@@ -127,6 +127,8 @@ func SpanPathGetSetter[K SpanContext](path ottl.Path[K]) (ottl.GetSetter[K], err
}
}
return accessStatus[K](), nil
case "flags":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this is a new accessible property added to the span context, can you please also add an entry in the readme?

@@ -585,3 +587,17 @@ func accessStatusMessage[K SpanContext]() ottl.StandardGetSetter[K] {
},
}
}

func accessFlags[K SpanContext]() ottl.StandardGetSetter[K] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add a test case for accessing flags to the unit test of the SpanPathGetSetter

Copy link
Contributor

github-actions bot commented Sep 4, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Sep 4, 2024
@github-actions github-actions bot removed the Stale label Sep 19, 2024
Copy link
Contributor

github-actions bot commented Oct 3, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot access flags from span context
3 participants